CXX= g++
CPPFLAGS= -m32
INCLUDE= include
LIB=lib
SRC= src

default: hello example


js-cgi: 
	$(CXX) $(CPPFLAGS) -I$(INCLUDE) $(EXECUTABLES) -o $(@) $(STATICLIBS)
example:
	$(CXX) $(CPPFLAGS) -I$(INCLUDE) $(SRC)/example.cpp -o $(@) $(LIB)/libv8.a \
	$(LIB)/libcgicc.a -lpthread 
hello: 
	$(CXX) $(CPPFLAGS) -I$(INCLUDE) $(SRC)/hello.cpp -o $(@) $(LIB)/libv8.a \
	-lpthread

clean:
	rm example hello

